package sctu.edu.java.year2016.team01.renxinpeng.day20160605.chapter11_3;

import java.util.Scanner;
/**
 * Created by Zero on 2016/6/6.
 * 调用方法并传递负整数，该方法会抛出自定义异常。
 */
public class Client {

    public static void main(String[] args) {

        Scanner scan=new Scanner(System.in);
        Computer computer=new Computer();
        System.out.println("请输入两个整数：");


        int x=scan.nextInt();
        int y=scan.nextInt();


        try {


            computer.commonDivisor(x,y);


        }catch (MyException qution){


            qution.printStackTrace();

        }
    }
}
